﻿using System.Windows.Forms;

namespace Weapp.ControlLibrary.CustomBasicControlers
{ 
    public partial class HorizontalLine: UserControl
    {
 
        #region attribute definition  
        private System.Drawing.Color lineColor;
        private int lineWidth;

        public System.Drawing.Color LineColor
        {
            set  
            {
                this.lineColor = value;
                System.Windows.Forms.PaintEventArgs ep = new PaintEventArgs (this.CreateGraphics(), this.ClientRectangle);
                this.HorizontalLine_Paint(this, ep);
            }
            get 
            {
                return this.lineColor;
            }
        }
        public   int LineWidth
        {
            set  
            {
                this.lineWidth = value;
                System.Windows.Forms.PaintEventArgs ep = new PaintEventArgs (this.CreateGraphics(), this.ClientRectangle);
                this.HorizontalLine_Paint(this, ep);
            }
            get 
            {
                return this.lineWidth;
            }
        }
        #endregion  
        
        private System.ComponentModel.Container Components = null;
 
        public HorizontalLine ()
        {
            InitializeComponent();
            this.lineColor = this.ForeColor;
            this.lineWidth = 1;
 
        }
    }
}